<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			const arr1 = [1, 2, 3];

			const arr2 = [4, 5, 6];

			let arr3 = [];

			for (let i = 0; i < arr1.length; i++) {
				// console.log(arr1[i]);
			}

			arr1.forEach(function(val) {
				// console.log(val);
			});

			// console.log(...arr1);

			arr3 = [...arr1, ...arr2];
			console.log(arr3);

			const stu = { //对象的地址 十六进制 0x0056
				name: "张三",
				age: 20
			}

			for (let attr in stu) {
				// console.log(attr, stu[attr]);
			}

			const stu2 = {
				...stu,
				set: "男"
			}

			console.log(stu2);
		</script>
	</head>
	<body>
	</body>
</html>
